package ex.com.jm.food.service.impl;

import java.util.List;








import ex.com.jm.food.dao.AdminMenuDao;
import ex.com.jm.food.entity.Menu;
import ex.com.jm.food.entity.SubType;
import ex.com.jm.food.service.AdminMenuService;



public class AdminMenuServiceImpl implements AdminMenuService {

	private AdminMenuDao adminMenuDao;
	

	public AdminMenuDao getAdminMenuDao() {
		return adminMenuDao;
	}

	public void setAdminMenuDao(AdminMenuDao adminMenuDao) {
		this.adminMenuDao = adminMenuDao;
	}

	@Override
	public List<Menu> getMenus(int initPage, int pageRow, String name,
			Integer type, Integer status,final Integer subId,Integer supId, String s_date, String e_date,
			String sort, String order) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().getMenus(initPage, pageRow, name, type, status,subId,supId,s_date, e_date, sort, order);
	}

	@Override
	public int menuCount(String name, Integer type, Integer status,final Integer subId,Integer supId,
			String s_date, String e_date) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().menuCount(name, type, status,subId,supId,s_date, e_date);
	}

	@Override
	public boolean updateTypea(String id, int type) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().updateTypea(id, type);
	}

	@Override
	public boolean updateStatus(String id, int status) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().updateStatus(id, status);
	}

	@Override
	public Object saveMenu(Menu menu) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().saveMenu(menu);
	}

	@Override
	public void update(Menu menu) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Menu editMenu(String id) {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().editMenu(id);
	}

	@Override
	public List<SubType> getSubTypes() {
		// TODO Auto-generated method stub
		return this.getAdminMenuDao().getSubTypes();
	}
	

}
